/**
 * block define
 * @param $name     block name
 * @examples
 *
 *    @include b(button) { ... }
 *    =>
 *    .za-button { ... }
 *
 *
 *    @include b(checkbox-group) { ... }
 *    =>
 *    .za-checkbox-group { ... }
 */
/**
 * element define
 * @param $list     list of element names
 * @examples
 *
 *    @include b(button) {
 *      @include e(icon) { ... }
 *    }
 *    =>
 *    .za-button__icon { ... }
 *
 *
 *    @include b(dialog) {
 *      @include e(header, footer) { ... }
 *    }
 *    =>
 *    .za-dialog__header, .za-dialog__footer { ... }
 */
/**
 * modifier define
 * @param $modifier     modifier name
 * @examples
 *
 *    @include b(button) {
 *      @include m(danger) { ... }
 *    }
 *    =>
 *    .za-button--danger { ... }
 *
 *
 *    @include b(button) {
 *      @include m(danger) {
 *        @include e(content) { ... }
 *      }
 *    }
 *    =>
 *    .za-button--danger .za-button__content { ... }
 *
 *
 *    @include b(button) {
 *      @include e(content) {
 *        @include m(danger) { ... }
 *      }
 *    }
 *    =>
 *    ..za-button__content--danger { ... }
 */
.za-stack-picker {
  width: 100%;
  height: 100%;
  background: var(--stack-picker-background);
}
.za-stack-picker__input {
  width: 100%;
  padding: var(--cell-padding-v) 0;
}

.za-stack-picker__placeholder {
  color: var(--color-text-placeholder);
}

.za-stack-picker--disabled {
  color: var(--color-text-disabled);
}

.za-stack-picker__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  width: 100%;
  height: var(--picker-header-height);
  line-height: var(--picker-header-height);
  font-size: var(--picker-header-font-size);
  background: var(--picker-header-background);
}
.za-stack-picker__header:after {
  content: "";
  pointer-events: none;
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  border-radius: 0;
  border-top: 1PX solid var(--border-color);
}
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 2dppx) {
  .za-stack-picker__header:after {
    width: 200%;
    height: 200%;
    transform: scale(0.5);
    transform-origin: 0 0;
    border-radius: 0;
  }
}

.za-stack-picker__cancel, .za-stack-picker__submit {
  padding: 0 var(--padding-h-lg);
  cursor: pointer;
}

.za-stack-picker__cancel {
  color: var(--color-text-caption);
}

.za-stack-picker__submit {
  color: var(--theme-primary);
}

.za-stack-picker__column-group {
  display: flex;
  align-items: center;
}
.za-stack-picker__column-group .za-stack-picker__item {
  flex: 1;
  text-align: center;
}

.za-stack-picker__crumbs {
  position: relative;
  padding: var(--cell-padding-v) var(--padding-h-lg);
  line-height: var(--stack-picker-crumbs-line-height);
  font-size: var(--font-size-md);
  color: var(--color-text-caption);
}
.za-stack-picker__crumbs:after {
  content: "";
  pointer-events: none;
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  border-radius: 0;
  border-bottom: 1PX solid var(--border-color);
}
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 2dppx) {
  .za-stack-picker__crumbs:after {
    width: 200%;
    height: 200%;
    transform: scale(0.5);
    transform-origin: 0 0;
    border-radius: 0;
  }
}
.za-stack-picker__crumbs p {
  margin: 0;
}

.za-stack-picker__crumbs-error {
  color: var(--stack-picker-error);
}

.za-stack-picker__group {
  position: relative;
  height: calc(8 * var(--stack-picker-stack-item-height));
  overflow: hidden;
}

.za-stack-picker__stack-column {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  transform: translate(0, 0);
  transition: transform 0.3s;
}
.za-stack-picker__stack-column--hidden ~ .za-stack-picker__stack-column {
  transform: translate(100%, 0);
}
.za-stack-picker__stack-column--hidden .za-stack-picker__item {
  padding-left: var(--stack-picker-padding);
}

.za-stack-picker__stack-column:nth-child(1) {
  z-index: 1001;
}
.za-stack-picker__stack-column:nth-child(1) .za-stack-picker__stack-column-wrapper {
  z-index: 3;
}
.za-stack-picker__stack-column:nth-child(2) {
  z-index: 2002;
}
.za-stack-picker__stack-column:nth-child(2) .za-stack-picker__stack-column-wrapper {
  z-index: 5;
  left: var(--stack-picker-left);
}
.za-stack-picker__stack-column:nth-child(3) {
  z-index: 3003;
  left: calc(var(--stack-picker-left) * (3 - 2));
}
.za-stack-picker__stack-column:nth-child(3) .za-stack-picker__stack-column-wrapper {
  z-index: 7;
  left: var(--stack-picker-left);
}
.za-stack-picker__stack-column:nth-child(4) {
  z-index: 4004;
  left: calc(var(--stack-picker-left) * (4 - 2));
}
.za-stack-picker__stack-column:nth-child(4) .za-stack-picker__stack-column-wrapper {
  z-index: 9;
  left: var(--stack-picker-left);
}
.za-stack-picker__stack-column:nth-child(5) {
  z-index: 5005;
  left: calc(var(--stack-picker-left) * (5 - 2));
}
.za-stack-picker__stack-column:nth-child(5) .za-stack-picker__stack-column-wrapper {
  z-index: 11;
  left: var(--stack-picker-left);
}
.za-stack-picker__stack-column:not(:last-child) .za-stack-picker__stack-column__item {
  padding-right: 40px;
}
.za-stack-picker__stack-column:not(:last-child) .za-stack-picker__stack-column__item:before {
  position: absolute;
  right: 15px;
  top: 50%;
  content: "";
  width: 9px;
  height: 9px;
  margin-top: -4px;
  border-right: 2px solid #c7c7cc;
  border-top: 2px solid #c7c7cc;
  transform: rotate(45deg);
}
.za-stack-picker__stack-column:first-child:last-child .za-stack-picker__stack-column__item, .za-stack-picker__stack-column:nth-child(2):last-child .za-stack-picker__stack-column__item {
  padding-left: var(--stack-picker-padding);
}
.za-stack-picker__stack-column-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  right: calc(var(--stack-picker-padding) * -1);
  bottom: 0;
  padding-right: var(--stack-picker-padding);
  overflow-y: scroll;
  box-shadow: var(--stack-picker-shadow);
  background: var(--stack-picker-background);
}
.za-stack-picker__stack-column-item {
  position: relative;
  padding: 0 10px;
  line-height: var(--stack-picker-stack-item-height);
  font-size: var(--stack-picker-stack-item-font-size);
  color: var(--color-text);
  transition: padding-left 0.4s;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
.za-stack-picker__stack-column-item:after {
  content: "";
  pointer-events: none;
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  border-radius: 0;
  border-bottom: 1PX solid var(--border-color);
}
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 2dppx) {
  .za-stack-picker__stack-column-item:after {
    width: 200%;
    height: 200%;
    transform: scale(0.5);
    transform-origin: 0 0;
    border-radius: 0;
  }
}
.za-stack-picker__stack-column-item--active {
  color: var(--theme-primary);
}